package cn.chenxiejia;

/***
 * @program: var1
 * @ClassName: task1_7
 * @Description:
 * @Author: chenxiejia
 * @Date: 2022/1/7 17:48
 * @version : V1.0
 */
public class task_07 {
    public static void main(String[] args) {
        for (int j = 1; j <= 7; j += 2) {//控制一行最多输出*个数
            for (int k = 1; k <= 7 - j; k += 2) {
                System.out.print(" ");
            }
            for (int i = 1; i <= j; i++) {//控制每行输出*的个数
                System.out.print("*");
            }
            System.out.println();
        }
        for (int m = 1; m <= 5; m += 2) {
            for (int v = 1; v <= m; v += 2) {
                System.out.print(" ");
            }
            
            for (int n = 1; n <= 6 - m; n++) {
                System.out.print("*");
            }
            System.out.println();
        }


        for (int a = 1; a <= 9; a++) {
            for (int b = 1; b <= a; b++) {
                System.out.printf("%d*%d=%d", b, a, a * b);
                System.out.print(" ");
            }
            System.out.println();
        }

    }
}
